<?php $form = $this->beginWidget('CActiveForm', array(
	'id'=>'new-form',
	'method'=>'post',
	'enableClientValidation'=>true,
)); ?>
<table class="table table-bordered">
	<thead>
	<tr>
		<th rowspan="2"><?php echo Yii::t('app', 'Content') ?></th>
		<th colspan="2"><?php echo Yii::t('app', 'Point setting') ?></th>
		<th rowspan="2" class="span2"></th>
	</tr>
	<tr>
		<th><?php echo Yii::t('app', 'Male') ?></th>
		<th><?php echo Yii::t('app', 'Female') ?></th>
	</tr>
	</thead>
	<tbody>
		<?php $key = "new"; ?>
		<tr>
			<td>
				<?php echo $form->textField($item, 'name', array('name'=>"PointPackage[$key][name]", 'class'=>'span12')); ?>
				<?php echo $form->error($item, 'name'); ?>
			</td>
			<td>
				<?php echo $form->textField($item, 'male_point', array('name'=>"PointPackage[$key][male_point]", 'class'=>'span12')); ?>
				<?php echo $form->error($item, 'male_point'); ?>
			</td>
			<td>
				<?php echo $form->textField($item, 'female_point', array('name'=>"PointPackage[$key][female_point]", 'class'=>'span12')); ?>
				<?php echo $form->error($item, 'female_point'); ?>
			</td>
			<td>
				<input type="submit" class="btn btn-primary" value="<?php echo Yii::t('app', 'Add') ?>" />
				<input type="hidden" name="action" value="create" />
			</td>
		</tr>
	</tbody>
</table>
<?php $this->endWidget(); ?>

<script>
//<![CDATA[
$('.btnDelete').click(function (e) {
	if(!confirm("<?php echo Yii::t('app', 'Are you sure you want to delete this item') ?>?")) {
		return e.preventDefault();
	}
});
//]]>
</script>